// vim: filetype=cpp

%VERTEX_SHADER

varying vec3 vNormal;

void main (void)
{
    vec4 Position;
    Position = gl_ModelViewMatrix * gl_Vertex;
    gl_Position = gl_ProjectionMatrix * Position;
   
    vNormal = gl_Normal;
}

%FRAGMENT_SHADER

varying vec3 vNormal;

void main (void)
{
    gl_FragColor = vec4(normalize(vNormal)*.5+vec3(.5), 1);
}

